package com.sinopec.scandevice.api

import com.sinopec.basemodule.http.api.HttpResult
import com.sinopec.basemodule.model.app_model.NavigationPageResponseModel
import com.sinopec.basemodule.model.app_model.WarehouseResponseDtos
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

/**
 * @author lwj
 * @ClassName: AppService
 * @Description: 主界面
 */
interface AppService {

    /**
     * 查询设备可切换仓库
     */
    @Headers("Content-Type: application/json")
    @POST("api/login/listEquipmentWarehouse")
    fun listEquipmentWarehouse(@Body hashMap: HashMap<String?, Any?>?): Observable<HttpResult<WarehouseResponseDtos>>

    /**
     * 切换设备仓库
     */
    @Headers("Content-Type: application/json")
    @POST("api/login/changeEquipmentWarehouse")
    fun changeEquipmentWarehouse(@Body hashMap: HashMap<String?, Any?>?): Observable<HttpResult<Any?>?>?

    /**
     * 导航页面(v1.1.0)
     */
    @Headers("Content-Type: application/json")
    @POST("api/sort/navigationPage")
    fun navigationPage(@Body hashMap: HashMap<String?, Any?>?): Observable<HttpResult<NavigationPageResponseModel?>?>?
}